package com.bes.sdk.message;

import android.text.TextUtils;
import android.util.Log;
import com.blankj.utilcode.util.DeviceUtils;

public class Constants {
	public static final String MANUFACTURER_HUAWEI = "HUAWEI";
	public static int GENERAL_PROTOCOL_PKG_MAX_LEN_DEFAULT = 178;

	static {
		String manufacturer = DeviceUtils.getManufacturer();
		if (!TextUtils.isEmpty(manufacturer)) {
			if (!MANUFACTURER_HUAWEI.equalsIgnoreCase(manufacturer)) {
				GENERAL_PROTOCOL_PKG_MAX_LEN_DEFAULT = 488;
			}
		}
		Log.i("Constants", "GENERAL_PROTOCOL_PKG_MAX_LEN_DEFAULT = " + GENERAL_PROTOCOL_PKG_MAX_LEN_DEFAULT);
	}

	public static final int GENERAL_PROTOCOL_PKG_MAX_LEN = GENERAL_PROTOCOL_PKG_MAX_LEN_DEFAULT;
	public static final int INFO_STAERTER = 0;
	public static final int CMD_HEADER_LEN = 4; // 单包包头字节数量
	public static final int CMD_END_LEN = 4;
	public static final int CMD_ECG_HEADER_LEN = 2; // 特殊指令，获取心率血压数据的头字节数量
	public static final int CMD_ECG_LENGTH_LEN = 2;
	public static final int CMD_HISTORY_TEMP_HEADER_LEN = 2;
	public static final int CMD_HISTORY_TEMP_LEN = 2;
	public static final int CMD_MULTI_PACK_HEADER_LEN = 2;
	public static final int CMD_MULTI_PACK_VALUE_LEN = 2;
	public static final int GENDER_INDEX = 7;
	public static final int BYTE_MASK = 0xFF; // 用于转换byte为无符号整数的掩码\
	public static final int DECIMAL_RADIX = 10; // 十进制基数
	public static final int YEAR_BYTE_LEN = 2;
	public static final int TIME_ZONE_SIGN_INDEX = 7;
	public static final int TIME_ZONE_SIGN_POSITIVE = 0x2b;
	public static final int TIME_ZONE_SIGN_NEGATIVE = 0x2d;
	public static final String BAT_UNIT = "%";
	public static final int DAILY_STEP_LEN = 4;
	public static final int DAILY_STEP_DATE_LEN = 1;
	// add by wangsm
	public static final int SAVE_SETTINGS_JSON_FILE_SUCCESS = 1;
	public static final int SAVE_WORKOUT_LIST_FILE_SUCCESS = 2;
	public static final int SAVE_WORKOUT_TRK_FILE_SUCCESS = 3;
	public static final int SAVE_PANELS_JSON_FILE_SUCCESS = 4;
	public static final int NO_JSON_FILE_EXIST = 5;
	public static final int TOTAL_TRK_FILE_TRANS_SUCCESS = 6;
	public static final int TOTAL_ROUTE_FILES_ALL_TRANS_SUCCESS = 7;
	public static final int TOTAL_TRK_FILE_NOT_EXIST = 8;
	public static final int SYSTEM_DOWN_LOW_VOLT = 9;
	public static final int SAVE_ROUTE_JSON_FILE_SUCCESS = 10;

	public static final int SAVE_USER_PROFILE_JSON_FILE_SUCCESS = 11;// 从码表端获取用户设置文件
	public static final int TOTAL_WORKOUT_TRK_FILE_MISSED_NOT_END = 12;
	public static final int TOTAL_WORKOUT_TRK_FILE_MISSED_END = 13;

	public static final int APP_UNBIND_DEVICE_SUCCESS = 14;// App 解绑设备成功
	public static final int UPDATE_TRK_FILE_TRANS_PROGRESS = 15;
	public static final int DEVICE_LOG_JSON_FILE_SUCCESS = 16;
	public static final int APP_SYNC_TIME_SUCCESS = 17;// app 同步时间成功的回调
	public static final int DEVICE_LOG_GET_LEVEL_SUCCESS = 18;
	public static final int DEVICE_LOG_SET_LEVEL_SUCCESS = 19;
	public static final int FIRST_GET_SETTINGS_JSON_FILE_SUCCESS = 20;//从码表获取 settings.json 保存成功的回调

	public static final int DEVICE_RENAME_SUCCESS = 21;//码表更改名字成功的回调
	public static final int DEVICE_GET_LOG_SUCCESS = 22;

	public static final int TEMP_PARAMS_LEN = 6;
	public static final int TEMP_PARAMS_INDEX = 5;
	public static final int WATCH_SIZE_BYTE_LEN = 2;
	public static final int MAC_ADDRESS_LEN = 18;
	public static final int BT_MAC_ENDINDEX = 6;
	public static final int VALUE_LEN = 2;
	public static final int FIRMWARE_CAPBILITY_LEN = 4;
	public static final int MULTI_FIRST_PACKAGE_HEADER_LEN = 12;
	public static final int MULTI_OTHERS_PACKAGE_HEADER_LEN = 4;
	public static final int MULTI_PACKAGE_INDEX_START = 2;
	public static final int MULTI_PACKAGE_PACK_NUM_START = 4;
	public static final int MULTI_PACKAGE_CMD_START = 8;
	public static final int MULTI_PACKAGE_LEN_START = 10;
	public static final int MULTI_BYTE_BIT_LEN = 8;
	public static final String ACTION_BES_BLE_CONNECT_STATE = "action.bes.ble.connect.state";
	public static final byte GENERAL_PROTOCOL_MULTI_PKG_SIGN = (byte) 0x7f;
	/* CMD constants */
	public static final byte[] CMD_AW_80011400 = { (byte) 0x80, (byte) 0x01, (byte) 0x14, (byte) 0x00 };
	public static final byte[] CMD_AW_80060E00 = { (byte) 0x80, (byte) 0x06, (byte) 0x0E, (byte) 0x00 };
	public static final byte[] CMD_AW_80080500 = { (byte) 0x80, (byte) 0x08, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_800A0500 = { (byte) 0x80, (byte) 0x0A, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_800B0500 = { (byte) 0x80, (byte) 0x0B, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_800D0900 = { (byte) 0x80, (byte) 0x0D, (byte) 0x09, (byte) 0x00 };
	public static final byte[] CMD_AW_800E = { (byte) 0x80, (byte) 0x0E };
	public static final byte[] CMD_AW_800E1000 = { (byte) 0x80, (byte) 0x0E, (byte) 0x10, (byte) 0x00 };
	public static final byte[] CMD_AW_80200500 = { (byte) 0x80, (byte) 0x20, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_80200600 = { (byte) 0x80, (byte) 0x20, (byte) 0x06, (byte) 0x00 };
	public static final byte[] CMD_AW_80220500 = { (byte) 0x80, (byte) 0x22, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_80230A00 = { (byte) 0x80, (byte) 0x23, (byte) 0x0a, (byte) 0x00 };
	public static final byte[] CMD_AW_80240C00 = { (byte) 0x80, (byte) 0x24, (byte) 0x0c, (byte) 0x00 };
	public static final byte[] CMD_AW_80250500 = { (byte) 0x80, (byte) 0x25, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_80270500 = { (byte) 0x80, (byte) 0x27, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_8028 = { (byte) 0x80, (byte) 0x28 };
	public static final byte[] CMD_AW_80290900 = { (byte) 0x80, (byte) 0x29, (byte) 0x09, (byte) 0x00 };
	public static final byte[] CMD_AW_80810500 = { (byte) 0x80, (byte) 0x81, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_80820500 = { (byte) 0x80, (byte) 0x82, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_80850500 = { (byte) 0x80, (byte) 0x85, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_80860500 = { (byte) 0x80, (byte) 0x86, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_80870500 = { (byte) 0x80, (byte) 0x87, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_80890500 = { (byte) 0x80, (byte) 0x89, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_808B0500 = { (byte) 0x80, (byte) 0x8B, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_808C0500 = { (byte) 0x80, (byte) 0x8C, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_808D0500 = { (byte) 0x80, (byte) 0x8D, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_808E0500 = { (byte) 0x80, (byte) 0x8E, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_808F0500 = { (byte) 0x80, (byte) 0x8F, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_80910500 = { (byte) 0x80, (byte) 0x91, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_80A20500 = { (byte) 0x80, (byte) 0xA2, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_80A70500 = { (byte) 0x80, (byte) 0xA7, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_80A80500 = { (byte) 0x80, (byte) 0xA8, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_80A90600 = { (byte) 0x80, (byte) 0xA9, (byte) 0x06, (byte) 0x00 };
	public static final byte[] CMD_AW_80AA = { (byte) 0x80, (byte) 0xAA };
	public static final byte[] CMD_AW_80AB0600 = { (byte) 0x80, (byte) 0xAB, (byte) 0x06, (byte) 0x00 };
	public static final byte[] CMD_AW_80AC0600 = { (byte) 0x80, (byte) 0xAC, (byte) 0x06, (byte) 0x00 };
	public static final byte[] CMD_AW_81AF0500 = { (byte) 0x81, (byte) 0xAF, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_81000900 = { (byte) 0x81, (byte) 0x00, (byte) 0x09, (byte) 0x00 };
	public static final byte[] CMD_AW_8102 = { (byte) 0x81, (byte) 0x02 }; // FIT_GET_AUTO_ECG_DATA
	public static final byte[] CMD_AW_8105 = { (byte) 0x81, (byte) 0x05 }; // FIT_GET_HISTORY_TEMP
	public static final byte[] CMD_AW_8106 = { (byte) 0x81, (byte) 0x06 };// FIT_GET_5_MINUTES_WALK
	public static final byte[] CMD_AW_810A0A00 = { (byte) 0x81, (byte) 0x0A, (byte) 0x0A, (byte) 0x00 }; // FIT_GET_LATEST_HEALTH_DATA
	public static final byte[] CMD_AW_810C = { (byte) 0x81, (byte) 0x0C };// FIT_GET_1_MINUTES_SLEEP
	public static final byte[] CMD_AW_810D = { (byte) 0x81, (byte) 0x0D };// FIT_GET_5_MINUTES_RUNNING
	public static final byte[] CMD_AW_811E = { (byte) 0x81, (byte) 0x1E }; // FIT_GET_HISTROY_PPG_RAW,no needed by user
	public static final byte[] CMD_AW_8120 = { (byte) 0x81, (byte) 0x20 }; // FIT_GET_SEDENTARY_ALART
	public static final byte[] CMD_AW_8123 = { (byte) 0x81, (byte) 0x23 }; // FIT_GET_ACTIVITY_CONFIG_SUMMARY
	public static final byte[] CMD_AW_8124 = { (byte) 0x81, (byte) 0x24 };// FIT_GET_ACTIVITY_CONFIG_DETAIL
	public static final byte[] CMD_AW_81250A00 = { (byte) 0x81, (byte) 0x25, (byte) 0x0A, (byte) 0x00 };
	public static final byte[] CMD_AW_8126 = { (byte) 0x81, (byte) 0x26 };
	public static final byte[] CMD_AW_81280600 = { (byte) 0x81, (byte) 0x28, (byte) 0x06, (byte) 0x00 };
	public static final byte[] CMD_AW_81291200 = { (byte) 0x81, (byte) 0x29, (byte) 0x12, (byte) 0x00 };
	public static final byte[] CMD_AW_812D1E00 = { (byte) 0x81, (byte) 0x2D, (byte) 0x1e, (byte) 0x00 };
	public static final byte[] CMD_AW_812D6600 = { (byte) 0x81, (byte) 0x2D, (byte) 0x66, (byte) 0x00 };
	public static final byte[] CMD_AW_812E1E00 = { (byte) 0x81, (byte) 0x2E, (byte) 0x1e, (byte) 0x00 };
	public static final byte[] CMD_AW_812E6600 = { (byte) 0x81, (byte) 0x2E, (byte) 0x66, (byte) 0x00 };
	public static final byte[] CMD_AW_812F1000 = { (byte) 0x81, (byte) 0x2F, (byte) 0x10, (byte) 0x00 };
	public static final byte[] CMD_AW_81800500 = { (byte) 0x81, (byte) 0x80, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_81830500 = { (byte) 0x81, (byte) 0x83, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_81850500 = { (byte) 0x81, (byte) 0x85, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_81860500 = { (byte) 0x81, (byte) 0x86, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_81890500 = { (byte) 0x81, (byte) 0x89, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_818B0500 = { (byte) 0x81, (byte) 0x8B, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_81910500 = { (byte) 0x81, (byte) 0x91, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_81920500 = { (byte) 0x81, (byte) 0x92, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_81930500 = { (byte) 0x81, (byte) 0x93, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_81960500 = { (byte) 0x81, (byte) 0x96, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_81970500 = { (byte) 0x81, (byte) 0x97, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_819E0500 = { (byte) 0x81, (byte) 0x9E, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_81A30500 = { (byte) 0x81, (byte) 0xA3, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_81A50500 = { (byte) 0x81, (byte) 0xA5, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_81A80500 = { (byte) 0x81, (byte) 0xA8, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_81A90600 = { (byte) 0x81, (byte) 0xA9, (byte) 0x06, (byte) 0x00 };
	public static final byte[] CMD_AW_81A91400 = { (byte) 0x81, (byte) 0xA9, (byte) 0x14, (byte) 0x00 };
	public static final byte[] CMD_AW_81AA = { (byte) 0x81, (byte) 0xAA };
	public static final byte[] CMD_AW_81AB0600 = { (byte) 0x81, (byte) 0xAB, (byte) 0x06, (byte) 0x00 };
	public static final byte[] CMD_AW_81AB0D00 = { (byte) 0x81, (byte) 0xAB, (byte) 0x0d, (byte) 0x00 };
	public static final byte[] CMD_AW_81AC0900 = { (byte) 0x81, (byte) 0xAC, (byte) 0x09, (byte) 0x00 };
	public static final byte[] CMD_AW_8205 = { (byte) 0x82, (byte) 0x05 };
	public static final byte[] CMD_AW_82090B00 = { (byte) 0x82, (byte) 0x09, (byte) 0x0B, (byte) 0x00 };
	public static final byte[] CMD_AW_820D = { (byte) 0x82, (byte) 0x0D };
	public static final byte[] CMD_AW_820F0600 = { (byte) 0x82, (byte) 0x0F, (byte) 0x06, (byte) 0x00 };
	public static final byte[] CMD_AW_82100500 = { (byte) 0x82, (byte) 0x10, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_82120500 = { (byte) 0x82, (byte) 0x12, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_8213 = { (byte) 0x82, (byte) 0x13 };
	public static final byte[] CMD_AW_8216 = { (byte) 0x82, (byte) 0x16 };
	public static final byte[] CMD_AW_8217 = { (byte) 0x82, (byte) 0x17 };
	public static final byte[] CMD_AW_82181300 = { (byte) 0x82, (byte) 0x18, (byte) 0x13, (byte) 0x00 };
	public static final byte[] CMD_AW_82800500 = { (byte) 0x82, (byte) 0x80, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_82810500 = { (byte) 0x82, (byte) 0x81, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_82820500 = { (byte) 0x82, (byte) 0x82, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_82830500 = { (byte) 0x82, (byte) 0x83, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_82850500 = { (byte) 0x82, (byte) 0x85, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_82890500 = { (byte) 0x82, (byte) 0x89, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_828A0500 = { (byte) 0x82, (byte) 0x8A, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_828B0500 = { (byte) 0x82, (byte) 0x8B, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_828E0500 = { (byte) 0x82, (byte) 0x8E, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_828F0500 = { (byte) 0x82, (byte) 0x8F, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_82900500 = { (byte) 0x82, (byte) 0x90, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_82910500 = { (byte) 0x82, (byte) 0x91, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_82920500 = { (byte) 0x82, (byte) 0x92, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_82930500 = { (byte) 0x82, (byte) 0x93, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_82940500 = { (byte) 0x82, (byte) 0x94, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_82950500 = { (byte) 0x82, (byte) 0x95, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_82960500 = { (byte) 0x82, (byte) 0x96, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_82970500 = { (byte) 0x82, (byte) 0x97, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_82980500 = { (byte) 0x82, (byte) 0x98, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_82990500 = { (byte) 0x82, (byte) 0x99, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_829A0500 = { (byte) 0x82, (byte) 0x9A, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_82A10500 = { (byte) 0x82, (byte) 0xA1, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_84000500 = { (byte) 0x84, (byte) 0x00, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_84800500 = { (byte) 0x84, (byte) 0x80, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_86060500 = { (byte) 0x86, (byte) 0x06, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_86070600 = { (byte) 0x86, (byte) 0x07, (byte) 0x06, (byte) 0x00 };
	public static final byte[] CMD_AW_86080700 = { (byte) 0x86, (byte) 0x08, (byte) 0x07, (byte) 0x00 };
	public static final byte[] CMD_AW_86810500 = { (byte) 0x86, (byte) 0x81, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_86820500 = { (byte) 0x86, (byte) 0x82, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_86860500 = { (byte) 0x86, (byte) 0x86, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_86880600 = { (byte) 0x86, (byte) 0x88, (byte) 0x06, (byte) 0x00 };
	public static final byte[] CMD_AW_86880900 = { (byte) 0x86, (byte) 0x88, (byte) 0x09, (byte) 0x00 };
	public static final byte[] CMD_AW_86890600 = { (byte) 0x86, (byte) 0x89, (byte) 0x06, (byte) 0x00 };
	public static final byte[] CMD_AW_86890700 = { (byte) 0x86, (byte) 0x89, (byte) 0x07, (byte) 0x00 };
	public static final byte[] CMD_WA_80000500 = { (byte) 0x80, (byte) 0x00, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_WA_81000500 = { (byte) 0x81, (byte) 0x00, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_WA_81010500 = { (byte) 0x81, (byte) 0x01, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_WA_81050500 = { (byte) 0x81, (byte) 0x05, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_WA_81800500 = { (byte) 0x81, (byte) 0x80, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_WA_84000500 = { (byte) 0x84, (byte) 0x00, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_WA_84010500 = { (byte) 0x84, (byte) 0x01, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_WA_84020500 = { (byte) 0x84, (byte) 0x02, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_WA_84030500 = { (byte) 0x84, (byte) 0x03, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_WA_84040500 = { (byte) 0x84, (byte) 0x04, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_WA_86810500 = { (byte) 0x86, (byte) 0x81, (byte) 0x05, (byte) 0x00 };
	public static final byte[] CMD_AW_8DB0 = { (byte) 0x8D, (byte) 0xB0 };
	public static final byte[] CMD_AW_8DB1 = { (byte) 0x8D, (byte) 0xB1 };
	public static final byte[] CMD_AW_8DB2 = { (byte) 0x8D, (byte) 0xB2 };
	public static final byte[] CMD_AW_8DB4 = { (byte) 0x8D, (byte) 0xB4 };
	public static final byte[] CMD_AW_8DB6 = { (byte) 0x8D, (byte) 0xB6 };
	public static final byte[] CMD_AW_8DB7 = { (byte) 0x8D, (byte) 0xB7 };
	public static final byte[] CMD_AW_8DB8 = { (byte) 0x8D, (byte) 0xB8 };
	public static final byte[] CMD_AW_8DB9 = { (byte) 0x8D, (byte) 0xB9 };
	public static final byte[] CMD_AW_8DBA = { (byte) 0x8D, (byte) 0xBA };
	public static final byte[] CMD_AW_8DC5 = { (byte) 0x8D, (byte) 0xC5 };
	public static final byte[] CMD_AW_8DC6 = { (byte) 0x8D, (byte) 0xC6 };
	public static final byte[] CMD_AW_8DCA = { (byte) 0x8D, (byte) 0xCA };
	public static final byte[] CMD_AW_8DCB = { (byte) 0x8D, (byte) 0xCB };
	public static final byte[] CMD_WA_90C7 = { (byte) 0x90, (byte) 0xC7 };
	public static final byte[] CMD_AW_8DD2 = { (byte) 0x8D, (byte) 0xD2 };
	public static final byte[] CMD_AW_0682 = { (byte) 0x06, (byte) 0x82 };
	public static final byte[] CMD_AW_8DD3 = { (byte) 0x8D, (byte) 0xD3 };
	public static final byte[] CMD_AW_8DEB = { (byte) 0x8D, (byte) 0xEB };
	public static final byte[] CMD_AW_8DDE = { (byte) 0x8D, (byte) 0xDE };
	public static final byte[] CMD_AW_8DE6 = { (byte) 0x8D, (byte) 0xE6 };
	public static final byte[] CMD_AW_8DCD = { (byte) 0x8D, (byte) 0xCD };
	public static final byte[] CMD_AW_8DD7 = { (byte) 0x8D, (byte) 0xD7 };
	public static final byte[] CMD_AW_8DC9 = { (byte) 0x8D, (byte) 0xC9 };
	public static final byte[] CMD_AW_8DD8 = { (byte) 0x8D, (byte) 0xD8 };
	public static final byte[] CMD_AW_8DD9 = { (byte) 0x8D, (byte) 0xD9 };
	public static final byte[] CMD_AW_8DDB = { (byte) 0x8D, (byte) 0xDB };
	public static final byte[] CMD_AW_8DDC = { (byte) 0x8D, (byte) 0xDC };
	public static final byte[] CMD_AW_8DF0 = { (byte) 0x8D, (byte) 0xF0 };
	public static final byte[] CMD_AW_8DDD = { (byte) 0x8D, (byte) 0xDD };// upload_log_file_list
	public static final byte[] CMD_AW_8D66 = { (byte) 0x8D, (byte) 0x66 };

	// end by wangsm
	public static final class WristToView {
		public static final int START_HOUR_INDEX = 5;
		public static final int START_MINUTE_INDEX = 6;
		public static final int END_HOUR_INDEX = 7;
		public static final int END_MINUTE_INDEX = 8;
	}

	public static final class ActivitySummary {
		public static final int ACTIVITY_IDENTITY_LENGTH = 6;
		public static final int ACTIVITY_CATAGORY_INDEX = 7;
		public static final int ACTIVITY_TYPE_INDEX = 8;
		public static final int UNIX_TIME_INDEX = 10;
		public static final int MAX_HR_INDEX = 14;
		public static final int MIN_HR_INDEX = 15;
		public static final int PACE_SPEED_INDEX = 16;
		public static final int AVE_SPEED_INDEX = 18;
		public static final int DURATION_INDEX = 22;
		public static final int TOTAL_CAL_INDEX = 24;
		public static final int TOTAL_STEP_INDEX = 28;
		public static final int TOTAL_DISTANCE_INDEX = 30;
		public static final int TOTAL_DISTANCE_LEN = 4;
		public static final int TOTAL_LEN = 34;
	}

	public static final class ActivityDetail {
		public static final int ACTIVITY_IDENTITY_INDEX = 0;
		public static final int ACTIVITY_CATEGORY_INDEX = 6;
		public static final int ACTIVITY_TYPE_INDEX = 7;
		public static final int ACTIVITY_INC_DATA_TYPE_INDEX = 9;
		public static final int ACTIVITY_DURATION_INDEX = 13;
		public static final int UNIX_TIME_INDEX = 14;
		public static final int OVERVIEW_TOTAL_LENTH = 18;
	}

	public final static String KEY_CONN_STATE = "conn_state";
	public final static String KEY_DEVICE = "conn_device";
	public final static String TYPE_STOP_WATCH_LOG = "watch_log";

}
